<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/wcs";
String path = request.getContextPath();
String WeChatPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SC微超市</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no">
<link href="<%=WeChatPath%>/assets/css/owl.carousel.css" rel="stylesheet">
<link href="<%=WeChatPath%>/assets/css/public.css" rel="stylesheet" type="text/css" />
<link href="<%=WeChatPath%>/assets/css/index.css" rel="stylesheet" type="text/css" />
<script src="<%=WeChatPath%>/assets/js/jquery-1.8.3.min.js"></script>
<script src="<%=WeChatPath%>/assets/js/owl.carousel.min.js"></script>
<script src="<%=WeChatPath%>/assets/layer/layer.js"></script>
</head>
<body>
	<div class="mobile">
	
		<!-- LOGO 和 搜索 -->
		<div class="header">
	    	<div class="m_logo"><span><img src="<%=WeChatPath%>/assets/images/logo.png"/></span></div>
	        <div class="m_search"><a href="#"><img src="<%=WeChatPath%>/assets/images/m-index_05.png" width="40"></a></div>
	    </div>
	    
	    <!-- 头部 -->
		<div class="top w">
		
			<!-- 先取消这个功能 -->
		   	<!--  <div class="m_banner" id="owl"> -->
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		         <!--   <a href="#" class="item"><img src="<%=basePath%>/upload/rootsort/Koala_small_20151009020509.jpg"></a>
		    <!-- </div> -->
		    
	        <div class="m_nav">
	        	<c:forEach  items="${rootsort_arrlist}" var="rootsort">
	        			<a href="#"><img src="<%=basePath%>/${rootsort.img}"><span>${rootsort.name}</span></a>
	        	</c:forEach>
	        </div>
	  	</div>
		
		<!-- 热门产品 -->
		<div class="m_baoliao w">
	  	<div class="baoliao_title"><span>热销</span><em><a href="#"><img src="<%=WeChatPath%>/assets/images/iconfont-shuaxin.png"></a></em></div>
		    <div class="baoliao_list">
		    	<c:forEach items="${hot_product_arrlist}" var="hot_product">
			        <a href="#">
			        <div class="baoliao_content">
			            <div class="bl_img"><img src="<%=basePath%>/${hot_product.img_logo}" /></div>
			            <div class="bl_right">
			                <div class="bl_title">${hot_product.name}</div>
			                <div class="bl_note">手机端：${hot_product.local_price}元</div>
			                <div class="bl_tag">
			                	<div class="bl_price">${hot_product.local_price}元</div>
			                	<div class="bl_oprice">${hot_product.super_market_price}元</div>
			                    <div class="bl_mall">${hot_product.merchant_name}</div>
			                </div>
			            </div>
			        </div> 
			        </a>
		        </c:forEach>
		    </div>
		    <div class="bl_more"><a href="#">加载更多</a></div>
		  	</div>
		</div>
			  	
	  	<!-- 热门商户 -->
	  	<div class="m_mall w">
		  	<div class="mall_title"><span>热门商户</span><em><a href="#">更多</a></em></div>
		    <div class="mall_list">
		   	   		<a href="#" class="mall"><div class="mall_logo"><img src="http://www.178hui.com/upload/mall_logo/www.jd.com.png" /></div><span>最高返 <i>2.8%</i></span></a>
					<a href="#" class="mall"><div class="mall_logo"><img src="http://www.178hui.com/upload/mall_logo/www.jd.com.png" /></div><span>最高返 <i>2.8%</i></span></a>
					<a href="#" class="mall"><div class="mall_logo"><img src="http://www.178hui.com/upload/mall_logo/www.jd.com.png" /></div><span>最高返 <i>2.8%</i></span></a>
					<a href="#" class="mall"><div class="mall_logo"><img src="http://www.178hui.com/upload/mall_logo/www.jd.com.png" /></div><span>最高返 <i>2.8%</i></span></a>
			</div>
		</div>
		
		<!-- 版本信息 -->
		<div class="copyright">Copyright © 2015 思辰电子科技有限公司版权所有</div>
		
</body>
</html>
